#define _CRT_SECURE_NO_WARNINGS 1

#include"ObjectPool.h"
#include"ConcurrentAlloc.h"

void AllocTest1()
{
	for (size_t i = 0; i < 5; i++)
	{
		void* ptr = ConcurrentAlloc(7);
	}
}

void AllocTest2()
{
	for (size_t i = 0; i < 5; i++)
	{
		void* ptr = ConcurrentAlloc(7);
	}
}

void TLSTest()
{
	std::thread t1(AllocTest1);
	t1.join();

	cout << endl;

	std::thread t2(AllocTest2);
	t2.join();
}

int main()
{
	//Object_Pool_Test();

	TLSTest();

	return 0;
}